package com.example.safeassistan.train.adapter;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.example.safeassistan.R;
import com.example.safeassistan.train.model.MateralList;

import java.util.List;


public class KonwLedgeBaseAdapter extends BaseQuickAdapter<MateralList.ResultDTO, BaseViewHolder> {


    public KonwLedgeBaseAdapter(List<MateralList.ResultDTO> data) {

        super(R.layout.item_material_list, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, MateralList.ResultDTO item) {
        helper.setText(R.id.tvName,item.getPostTitle());
        helper.setText(R.id.tvIntro,item.getPostDesc());
        helper.setText(R.id.tvCreateTime,item.getCreateTime());
    }
}
